package com.jn.datasource;

public class DBContextHolder {
	public static final String DATA_SOURCE_WQT = "dataSourceWqt";
	public static final String DATA_SOURCE_VAC = "dataSourceVac";
	public static final String DATA_SOURCE_ECIA = "dataSourceEcia";
	public static final String DATA_SOURCE_SDCC = "dataSourceSdcc";
	public static final String DATA_SOURCE_SDDW = "dataSourceSddw";

	private static final ThreadLocal<String> contextHolder = new ThreadLocal<String>();

	public static void setDBType(String dbType) {
		contextHolder.set(dbType);
	}

	public static String getDBType() {
		return contextHolder.get();
	}

	public static void clearDBType() {
		contextHolder.remove();
	}
}
